<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table class="am-table am-table-bordered am-text-center">
	<thead>
		<tr>
			<th colspan="3">
				<button title="刷新" id="reload" class="am-btn am-btn-primary">刷新数据</button>
			</th>
		</tr>
							
	</thead>
	<tbody>
		<form id="submitForm">
			<c:forEach items="${list }" var="admin" varStatus="sta">
				<tr>
					<td ><input value=${admin.id } name="adminId" checked="checked" type="checkbox"></td>
					<td>${admin.name }</td>
					<td>${admin.age }</td>
				</tr>
			</c:forEach>
		</form>
		<tr>
			<td colspan="3">
				<button onclick="selectedAllClick()" class="am-btn am-btn-primary" title="点击后将所有数据的checkbox修改为选中状态">全选</button>
				<button onclick="notSelectedClick()" class="am-btn am-btn-primary" title="点击后将所有数据的checkbox修改为未选中状态">全不选</button>
				<button class="am-btn am-btn-primary" onclick="InverseClick()" title="点击后，已选择的checkbox改为未选择，未选择的checkbox改为已选择">反选</button>
				<button class="am-btn am-btn-warning" onclick="SubmitSelectedClick()" title="点击后提交已选择数据的value值">提交已选择数据</button>
			</td>
		</tr>
							
	</tbody>
</table>